
#ifndef __APP_CAN_MASTER_H
#define __APP_CAN_MASTER_H

#include "sn_driver.h"

uint8_t can_master_init(struct can_dev_t *dev);
/**
 * @brief 设置模块 电压
 *
 * @param num  模块号
 * @param vout 电压值
*/
sn_err_t can_app_set_mod_vout(struct can_dev_t *dev,uint8_t num,uint32_t vout);
/**
 * 
 * @brief 设置系统开关机
 * 
 * @param state 0 关机 1 开机
 * 
*/
sn_err_t can_app_set_sys_power(struct can_dev_t *dev,uint8_t state);
/**
 * @brief 获取模块开关机
 */
sn_err_t can_app_set_mod_power(struct can_dev_t *dev,uint32_t num,uint8_t state);
/**
 * @brief 获取模块输出电压 
 * 
 */
sn_err_t can_app_get_mod_vout(struct can_dev_t *dev,uint32_t num);

#endif 

